import {AccessEnum} from "~/utils/constant.ts";

export interface UserInfo {
  id: number | string
  username: string
  name: string
  avatar: string
  type?: AccessEnum
}

export function getUserInfoApi() {
  return useGet<UserInfo>('/user/info',{},{
    customDev: true
  })
}
